﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TCDL.DAO;
using TCDL.GLOBAL;
using System.Windows.Forms;

namespace TCDL.BUS
{
    public class XemDSBUS
    {
        public Object XemDS(String strProc, gConnect[] gCon, int iCount)
        {
            Object obj = Process.HienThi(strProc, gCon, iCount, 1);
            return obj;
        }

        public void ThemDS(String strProc, gConnect[] gCon, int iCount)
        {
            Object obj = Process.HienThi(strProc, gCon, iCount, 2);
            if ((int) obj == 2)
            {
                MessageBox.Show("Thực thi thành công");
            }
            else
            {
                MessageBox.Show("Thực thi thất bại");
            }
        }
    }
}